@echo off
set DOLLS="accountsrv,battlesrv,configsrv,dbsrv,gamesrv,gmproxysrv,managesrv,msdksrv,ranksrv,routersrv,sandboxsrv,smssrv,uidsrv,wordsfiltersrv"

:doll_loop

for /f "Tokens=1,* Delims=," %%a in (%DOLLS%) do (

    echo "dolltest.%%a\bin\tars_wstop.bat"
    cd D:\workspace\tools\tars_install\tars\tarsnode\data\dolltest.%%a\bin
    call tars_wstop.bat nopause
  
    set DOLLS="%%b"

    goto :doll_loop
)

pause